package com.hou.houlymall.auth.feign;

import com.hou.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author H
 * @create 2021-08-13 20:12
 */
@FeignClient("houlymall-third-party")
public interface ThirdPartyFeignService {


    /**
     * 提供给别的服务进行调用
     * @param phone ...
     * @param code ...
     * @return ...
     */
    @GetMapping("/sms/sendcode")
    R sendCode(@RequestParam("phone") String phone, @RequestParam("code") String code);
}
